package com.qy.StudentInfo.utils;

/**
 * @program: student-info-master
 * @author: QiYue
 * @create: 20220429 14:48
 **/

public class Constants {
    // ---------------------------邮件发送模块-----------------------------
    /**
     * 邮箱授权码
     */
    public static final String authorizationCode="VXUADFHAIGUUEGLZ";
    /**
     * 邮箱SMTP服务器
     */
    public static final String SERVERS = "smtp.163.com";
    /**
     * 发送方邮箱
     */
    public static final String EMAILSENDER="15124998928@163.com";
    /**
     * 邮件信息类型
     */
    public static final String EMAILTYPE="text/html;charset=UTF-8";

    /**
     * 学生邮件消息头
     */
    public static final String STUDENT_HEAD="<!DOCTYPE html>\n" +
            "<html lang=\"en\">\n" +
            "<head>\n" +
            "    <meta charset=\"UTF-8\">\n" +
            "    <title>Title</title>\n" +
            "    <style>\n" +
            "        table {\n" +
            "            width: 90%;\n" +
            "            background: #ccc;\n" +
            "            margin: 10px auto;\n" +
            "            border-collapse: collapse;\n" +
            "            /*border-collapse:collapse合并内外边距\n" +
            "            (去除表格单元格默认的2个像素内外边距*/\n" +
            "        }\n" +
            "        th,td {\n" +
            "            height: 25px;\n" +
            "            line-height: 25px;\n" +
            "            text-align: center;\n" +
            "            border: 1px solid #ccc;\n" +
            "        }\n" +
            "        th {\n" +
            "            background: #eee;\n" +
            "            font-weight: normal;\n" +
            "        }\n" +
            "        tr {\n" +
            "            background: #fff;\n" +
            "        }\n" +
            "        tr:hover {\n" +
            "            background: #cc0;\n" +
            "        }\n" +
            "        td a {\n" +
            "            color: #06f;\n" +
            "            text-decoration: none;\n" +
            "        }\n" +
            "        td a:hover {\n" +
            "            color: #06f;\n" +
            "            text-decoration: underline;\n" +
            "        }\n" +
            "    </style>\n" +
            "</head>\n" +
            "<body>\n" +
            "<table class=\"table\">\n" +
            "    <tr>\n" +
            "        <th>课程编号</th>\n" +
            "        <th>课程名</th>\n" +
            "        <th>成绩</th>\n" +
            "        <th>学分</th>\n" +
            "    </tr>";
    /**
     * 学生消息体尾
     */
    public static final String STUDENT_TAIL="    </tr>\n" +
            "</table>\n" +
            "</body>\n" +
            "</html>";

    /**
     * 课程消息体头
     */
    public static final String CLASS_HEAD ="<!DOCTYPE html>\n" +
            "<html lang=\"en\">\n" +
            "<head>\n" +
            "    <meta charset=\"UTF-8\">\n" +
            "    <title>Title</title>\n" +
            "    <style>\n" +
            "        table {\n" +
            "            width: 90%;\n" +
            "            background: #ccc;\n" +
            "            margin: 10px auto;\n" +
            "            border-collapse: collapse;\n" +
            "            /*border-collapse:collapse合并内外边距\n" +
            "            (去除表格单元格默认的2个像素内外边距*/\n" +
            "        }\n" +
            "        th,td {\n" +
            "            height: 25px;\n" +
            "            line-height: 25px;\n" +
            "            text-align: center;\n" +
            "            border: 1px solid #ccc;\n" +
            "        }\n" +
            "        th {\n" +
            "            background: #eee;\n" +
            "            font-weight: normal;\n" +
            "        }\n" +
            "        tr {\n" +
            "            background: #fff;\n" +
            "        }\n" +
            "        tr:hover {\n" +
            "            background: #cc0;\n" +
            "        }\n" +
            "        td a {\n" +
            "            color: #06f;\n" +
            "            text-decoration: none;\n" +
            "        }\n" +
            "        td a:hover {\n" +
            "            color: #06f;\n" +
            "            text-decoration: underline;\n" +
            "        }\n" +
            "    </style>\n" +
            "</head>\n" +
            "<body>\n" +
            "<table class=\"table\">\n" +
            "    <h1>老师，您收到了本学期的选课名单！快来查看吧</h1>\n" +
            "    <br>\n" +
            "    <br>\n" +
            "    <tr>\n" +
            "        <th>学号</th>\n" +
            "        <th>姓名</th>\n" +
            "        <th>性别</th>\n" +
            "        <th>班级</th>\n" +
            "        <th>专业</th>\n" +
            "        <th>学院</th>\n" +
            "    </tr>";

    /**
     * 课程消息体尾
     */
    private static final String CLASS_TAIL = "</table>\n" +
            "</body>\n" +
            "</html>";
}
